#!/bin/bash
cp -r .vim .vimrc ~
echo Y | sudo apt install neovim
echo Y | sudo apt install npm
src=.vimrc
if [ -f $src ]; then
    if [ ! -d ~/.config/nvim ]; then
        mkdir ~/.config/nvim
    fi
    cp $src ~/.config/nvim/init.vim
fi
src=.vim/autoload/plug.vim
if [ -f $src ]; then
    if [ ! -d ~/.local/share/nvim/site/autoload ]; then
        mkdir -p ~/.local/share/nvim/site/autoload/
    fi
    cp $src ~/.local/share/nvim/site/autoload/
fi
